<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>申请物流</title>
		<!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />-->
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" media="all" />
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
		
		<style type="text/css">
			.layui-form {
				width: 60%;
			}
			
			.layui-form-label {
				width: 100px;
			}
			
			.layui-input-block {
				margin-left: 130px;
			}
			
			.layui-table td,
			.layui-table th {
				padding: 5px 25px;
			}
			
			.btn {
				background: #ff6600;
				width: 250px;
			}
			
			.layui-table tr:hover,
			.layui-table[lay-even] tr:nth-child(even) {
				background: #FFFFFF;
			}
			
			.add {
				width: 80%;
				z-index: 999;
			}
			
			.aqq {
				position: relative;
			}
			
			.aq-1 {
				right: 48px;
			}
			
			.aq-2 {
				left: -97px;
			}
			
			.layui-form-select dl {
				min-width: 100%;
			}
		</style>
	</head>

	<body>
		<div class="content">
			<div class="titlebar">
				<div class="titlebar-name">申请物流</div>
			</div>

			<form class="layui-form" id="bd1">
				<table class="layui-table" lay-even lay-skin="nob">
					<colgroup>
						<col width="150">
						<col width="200">
						<col>
					</colgroup>
					<tbody>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">物流名称：</label>
									<div class="layui-input-block">
										<input type="text" name="Name" required lay-verify="required" placeholder="请填写物流名称" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<!-- <tr>
							<td colspan="4">
								<div class="layui-form-item asd">
									<label class="layui-form-label">运营模式：</label>
									<div class="layui-input-block">
										<select name="city" lay-verify="">
											<option value="010" selected>物流集团</option>
											<option value="021">快递集团</option>
											<option value="0571">物流服务</option>
											<option value="0571">私家车队</option>
											<option value="0571">个人</option>
										</select>
									</div>
								</div>
							</td>
						</tr> -->
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">联系人：</label>
									<div class="layui-input-block">
										<input type="text" name="Contact" required lay-verify="required" placeholder="请填写相关负责人" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">QQ账号：</label>
									<div class="layui-input-block">
										<input type="text" name="QQ" required lay-verify="required" placeholder="请输入您的QQ号码" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">邮箱：</label>
									<div class="layui-input-block">
										<input type="text" name="Email" required lay-verify="required" placeholder="请输入您的邮箱" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">网址：</label>
									<div class="layui-input-block">
										<input type="text" name="WebUrl" required lay-verify="required" placeholder="请输入您的网址" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div class="layui-form-item">
									<label class="layui-form-label">联系地址：</label>
									<div class="layui-input-block add">
										<select name="city" lay-verify="">
											<option value="">请选择城市</option>
											<option value="010">北京</option>
											<option value="021">上海</option>
											<option value="0571">杭州</option>
										</select>
									</div>
								</div>
							</td>

							<td>
								<div class="layui-form-item aqq aq-1">
									<div class="layui-input-block add">
										<select name="city" lay-verify="">
											<option value="">请选择城市</option>
											<option value="010">北京</option>
											<option value="021">上海</option>
											<option value="0571">杭州</option>
										</select>
									</div>
								</div>
							</td>
							<td>
								<div class="layui-form-item aqq aq-2">
									<div class="layui-input-block add">
										<select name="city" lay-verify="">
											<option value="">请选择城市</option>
											<option value="010">北京</option>
											<option value="021">上海</option>
											<option value="0571">杭州</option>
										</select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">街道：</label>
									<div class="layui-input-block">
										<input type="text" name="AdressDis" required lay-verify="required" placeholder="街道 门牌号 大厦名称 房间号码" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<label class="layui-form-label">展示图片：</label>
								<input type="button" value="上传图片" class="layui-btn layui-btn-radius layui-btn-warm" />
								<span>物流展示图(长*宽:300*300)</span>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<label class="layui-form-label">轮播图片：</label>
								<input type="button" value="上传图片" class="layui-btn layui-btn-radius layui-btn-warm" />
								<span>物流轮播图最多5张(长*宽:1300*450)</span>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">物流介绍：</label>
									<div class="layui-input-block">
										<textarea name="Content" required lay-verify="required" placeholder="请输入" class="layui-textarea"></textarea>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<div class="layui-input-block">
										<button class="layui-btn btn layui-btn-danger" onclick="but();" lay-submit lay-filter="formDemo">开通物流</button>
									</div>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
			
		</div>
		{:jq()}
		{:layui()}
		<script type="text/javascript">
			

				function but(){
		

				var data=$("#bd1").serialize();

			$.post("{:url('seller/apply')}",data,function(res){
						alert(1);
				//console.log(res);
				if(res.code==200){

					alert('添加成功');
					window.location.href="{:url('index')}";
				}else{

					alert(res.msg);
				}


			});

		}







		</script>
	</body>

</html>